wayland: Make subsurface desynchronized after first parent surface frame
authorJonas Ådahl <jadahl@gmail.com>
Thu, 10 Sep 2015 09:42:21 +0000 (17:42 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 15 Sep 2015 00:11:47 +0000 (08:11 +0800)
commit7c4c8b90f0b1d5619b1a4e46420e09d9b3849684
treed9745a665befceec6e82957a822adb6bf9e4034c
parent07a574ddddd971f7b8a4aa237f6bdb4a4a08c6b5
wayland: Make subsurface desynchronized after first parent surface frame

Initially the subsurface will be in synchronized mode and we will leave
it like this until the first time the parent surface has been committed.
The reason for this is because the subsurface position will be applied
as part of the parent surface state, and we need to synchronize the
initial position with the initial frame, so that we don't accidentally
draw the subsurface at the default position (0, 0) which would happen in
desynchronized mode if the subsurface content is committed before the
next parent surface commit.

https://bugzilla.gnome.org/show_bug.cgi?id=754839
gdk/wayland/gdkwindow-wayland.c